#! /usr/bin/env python
import os

#os.unlink('/var/run/xnopt/tables.dat')
#path = '/var/run/xnopt/tables.dat'
path = './test.fifo'
#os.mkfifo(path)

fifo = open(path, 'r')

while True:
    json_str = fifo.read(4096)
    print json_str

fifo.close()
os.unlink(path)
